package com.tree.backend.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 需求接单表
 * </p>
 *
 * @author tree
 * @since 2025-11-06
 */
@Getter
@Setter
@ToString
@TableName("demand_order")
public class DemandOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 接单ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 需求ID
     */
    private Long demandId;

    /**
     * 接单企业ID
     */
    private Long enterpriseId;

    /**
     * 接单用户ID
     */
    private Long userId;

    /**
     * 报价金额
     */
    private BigDecimal bidAmount;

    /**
     * 接单说明
     */
    private String description;

    /**
     * 确认时间
     */
    private LocalDateTime confirmTime;

    /**
     * 完成时间
     */
    private LocalDateTime finishTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
}
